import request from '@/utils/request'

// 查询店铺消息配置列表
export function listConfigMessage(data) {
  return request({
    url: '/market/configMessage/configMessageList',
    method: 'post',
    data: data
  })
}

// 查询店铺消息配置详细
export function getConfigMessage(data) {
  return request({
    url: '/market/configMessage/getConfigMessage',
    method: 'post',
    data: data
  })
}

// 新增店铺消息配置
export function addConfigMessage(data) {
  return request({
    url: '/market/configMessage',
    method: 'post',
    data: data
  })
}

// 保存店铺消息配置
export function saveConfigMessage(data) {
  return request({
    url: '/market/configMessage/save',
    method: 'post',
    data: data
  })
}

// 修改店铺消息配置
export function updateConfigMessage(data) {
  return request({
    url: '/market/configMessage',
    method: 'put',
    data: data
  })
}

// 删除店铺消息配置
export function delConfigMessage(configMessageId) {
  return request({
    url: '/market/configMessage/' + configMessageId,
    method: 'delete'
  })
}

